package com.codingfuture.erp_system.mapper;

import com.codingfuture.erp_system.dto.MarketDetailDto;
import com.codingfuture.erp_system.dto.MarketDto;
import com.codingfuture.erp_system.dto.OrdersDetailDto;
import com.codingfuture.erp_system.entity.Role;
import com.codingfuture.erp_system.entity.Supplier;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface MarketMapper {
    List<MarketDto> findByAll();

    List<MarketDetailDto> findMarketDetailDto(long uuid);

    List<Supplier> showSupplier(Integer type);

    int addMarketDetail(List<MarketDetailDto> marketDetails);

    int addById(MarketDto marketDto);

    int doOutStore(Integer id, Date date, Integer storeuuid);

    List<OrdersDetailDto> findById(Integer id);

    int updateByState(Long ordersuuid);

    Role findId(Object name);

    List<OrdersDetailDto> findByUuid(Long ordersuuid);

}
